<!--
 * @Author: your name
 * @Date: 2022-04-13 17:25:43
 * @LastEditTime: 2022-04-14 09:36:26
 * @LastEditors: your name
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \geyao\js的继承关系220413.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    oldObject=function(){
      this.a="我是歌谣"
    }
    //赋值出一个新对象
    newObject=function(){
      newObject.b="属性2"
      newObject.function=function(){

      }
    }
    var geyao=new newObject()
  </script>
</body>
</html>